﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLTTTH
{
    public partial class frm_ghidanh : DevExpress.XtraEditors.XtraForm
    {
        public frm_ghidanh()
        {
            InitializeComponent();
        }

        private void cb_loai_Load(object sender, EventArgs e)
        {
            cb_loai.SelectedIndex = 0;
        }

        private void cb_loai_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cb_loai.SelectedIndex == 0)
            {
                lbl_ten.Text = "Mã sinh viên";
                lbl_lop.Visible = true;
                txt_lop.Visible = true;
            }
            else
            {
                lbl_ten.Text = "Mã học viên";
                lbl_lop.Visible = false;
                txt_lop.Visible = false;
                txt_mahv.ReadOnly = true;
            }
        }

    }
}